package com.cloud.lan.entity.model.dataobject;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 商品购买信息
 * </p>
 *
 * @author xyqierkang@163.com
 * @since 2022-05-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("lan_goods_locations")
public class LanGoodsLocationsDO implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 商品ID
     */
    private Long goodsId;

    /**
     * 关联门店ID
     */
    private Long storeId;

    /**
     * 商品编码
     */
    private String goodsNo;

    /**
     * 关联地址
     */
    private String locations;

    /**
     * 排序字段值越大越靠前
     */
    private Integer imgSort;

    /**
     * 是否删除，0.否，1.是
     */
    private Integer isDeleted;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 商品ID
     */
    @TableField(exist = false)
    private Long locationId;

    /**
     * link地址
     */
    @TableField(exist = false)
    private String link;

    /**
     * 绑定的店铺信息
     */
    @TableField(exist = false)
    private LanStoreDO lanStoreDO;
}
